package com.peycard.persistence.entities;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;


/**
 * The persistent class for the NODE_CONFIG_ISO8583 database table.
 * 
 */
@Entity
@Table(name="NODE_CONFIG_ISO8583")
public class NodeConfigIso8583 implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="NODE_CONFIG_ISO8583_IDNODECONFIGURATION_GENERATOR", sequenceName="ID_NODE_CONFIG_ISO8583_GENERATOR")
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="NODE_CONFIG_ISO8583_IDNODECONFIGURATION_GENERATOR")
	@Column(name="ID_NODE_CONFIGURATION")
	private long idNodeConfiguration;

	@Column(name="ID_NODE_ISO8583")
	private BigDecimal idNodeIso8583;

	@Column(name="IP_TM")
	private String ipTm;

	@Column(name="PORT_TM")
	private String portTm;

	//bi-directional one-to-one association to NodeIso8583
	@OneToOne
	@JoinColumn(name="ID_NODE_CONFIGURATION")
	private NodeIso8583 nodeIso8583;

    public NodeConfigIso8583() {
    }

	public long getIdNodeConfiguration() {
		return this.idNodeConfiguration;
	}

	public void setIdNodeConfiguration(long idNodeConfiguration) {
		this.idNodeConfiguration = idNodeConfiguration;
	}

	public BigDecimal getIdNodeIso8583() {
		return this.idNodeIso8583;
	}

	public void setIdNodeIso8583(BigDecimal idNodeIso8583) {
		this.idNodeIso8583 = idNodeIso8583;
	}

	public String getIpTm() {
		return this.ipTm;
	}

	public void setIpTm(String ipTm) {
		this.ipTm = ipTm;
	}

	public String getPortTm() {
		return this.portTm;
	}

	public void setPortTm(String portTm) {
		this.portTm = portTm;
	}

	public NodeIso8583 getNodeIso8583() {
		return this.nodeIso8583;
	}

	public void setNodeIso8583(NodeIso8583 nodeIso8583) {
		this.nodeIso8583 = nodeIso8583;
	}
	
}